#pragma once

#include <xpam/system/handle.h>

namespace xpam
{
    namespace system
    {
        class process : public handle
        {
            unsigned int _pid;
            std::string _currentDir;
            handle _stdin;
            handle _stdout;
            handle _stderr;

        public:
            process();
            void create(const std::string & procName, const std::string & args); 
            void terminate();
            void stdin_handle(const handle & h);
            void stdout_handle(const handle & h);
            void stderr_handle(const handle & h);
        };
    }
}